<?php
namespace Admin\Controller;
use Think\Controller;
/**
 * 验证码
 * @author Administrator
 *
 */
class VerifyController extends Controller {
    ////验证码
	public function verify(){
		$config =    array(    
			'fontSize'    =>    30,    // 验证码字体大小    
			'length'      =>    5,     // 验证码位数    
			'useNoise'    =>    false, // 关闭验证码杂点
			'imageW'      =>    300,     //宽度
			'imageH'      =>    60,     //高度
			
		);
		$Verify = new \Think\Verify($config);
		$Verify->entry();
	} 
	////验证码检测
	public function checkVerify($code){
		$verify = new \Think\Verify();    
		return $verify->check($code);
	}
}